/**
 * 
 */
package com.google.code.cisx.client.session;

import com.google.code.cisx.client.event.TypedEvent;

/**
 * Wraps up an Session related event. The event can be:
 * <ul>
 * <li>User login in</li>
 * <li>User logout</li>
 * <li>Session Time out</li>
 * </ul>
 * 
 * @author <a href='mailto:rahul.thakur.xdev@gmail.com'>Rahul Thakur</a>
 * @since 1.0
 * @version $Id: SessionEvent.java 258 2008-11-29 06:23:51Z rahul.thakur.xdev $
 * @see <a
 *      href='http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/6635205f5ce8208a/527814f357020055?lnk=gst&q=session+listener#527814f357020055'>
 *      Handling Custom Events</a>
 */
public class SessionEvent extends TypedEvent {

  public static enum SessionEventType {
    LOGIN("Login"), LOGOUT("Logout"), TIMEOUT("Timeout");

    private String type;

    /**
     * @param type
     */
    private SessionEventType(String type) {
      this.type = type;
    }

  }

  /**
   * @param source
   * @param type
   */
  public SessionEvent(Object source, String type) {
    super(source, type);
  }

  /**
   * @param source
   */
  public SessionEvent(Object source) {
    super(source);
  }

}
